
// 创建一个路由  createRouter
import {createRouter,createWebHistory} from "vue-router"

import index from "../index.vue"
import Discover from '../views/Discover.vue'
import Publish from '../views/Publish.vue'
import Notification from '../views/Notification.vue'
import Profile from '../views/Profile.vue'
import MyBase from '../views/MyBase.vue'
import Message from "../views/Message.vue"
//创建路由器
const router =createRouter({
    history:createWebHistory(),
    
    routes:[
         
        {
            path:"/index",
            component:index
        },
        {
            path:"/discover",
            component:Discover
        },
        {
            path:"/publish",
            component:Publish
        },
        {
            path:"/notification",
            component:Notification
        },
        {
            path:"/profile",
            component:Profile
        },
        {
            path:"/mybase",
            component:MyBase
        },
        {
            path:"/message",
            component:Message
        },
    ]
})


//路由暴漏出去
export default router